package edu.hunau.cxb18home.pojo;

import java.util.List;

/**
 * @author gwl
 * @create 2020-03-05 上午 11:45
 */
public class Student {
  private int sid;
  private String sname;

  //关联属性
    private List<Grade> grades;

    public List<Grade> getGrades() {
        return grades;
    }

    public void setGrades(List<Grade> grades) {
        this.grades = grades;
    }

    public Student() {
    }

    public int getSid() {
        return sid;
    }

    public void setSid(int sid) {
        this.sid = sid;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    @Override
    public String toString() {
        return "Student{" +
                "sid=" + sid +
                ", sname='" + sname + '\'' +
                ", grades=" + grades +
                '}';
    }
}
